package src.Thread_per_message;

/**
 * Created by 58 on 2016/3/29.
 */
public class Main {
    public static void main(String[] args) {
//        System.out.println("main BEGIN");
//        Host host = new Host();
//        host.request(10, 'A');
//        host.request(20, 'B');
//        host.request(30, 'C');
//        System.out.println("main END");
        System.out.println("0a".hashCode());
        MyHashObject a = new MyHashObject();
        a.setName("hello world&yes i am dfsdfd kkkm ");
        System.out.println(a.hashCode());
        MyHashObject b = new MyHashObject();
        b.setName("hello");
        System.out.println(b.hashCode());
        System.out.println(a.equals(b));
        System.out.println("*********************************************");
        for (int i = 0; i < 10000; i++) {
            a.setName(a.getName() + i);
            System.out.println(a.hashCode() & (8 - 1));
        }

        System.out.println("*********************************************");
    }
}
